package com.ygou.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrdersExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrdersExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderidIsNull() {
            addCriterion("orderid is null");
            return (Criteria) this;
        }

        public Criteria andOrderidIsNotNull() {
            addCriterion("orderid is not null");
            return (Criteria) this;
        }

        public Criteria andOrderidEqualTo(Integer value) {
            addCriterion("orderid =", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotEqualTo(Integer value) {
            addCriterion("orderid <>", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThan(Integer value) {
            addCriterion("orderid >", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThanOrEqualTo(Integer value) {
            addCriterion("orderid >=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThan(Integer value) {
            addCriterion("orderid <", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThanOrEqualTo(Integer value) {
            addCriterion("orderid <=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidIn(List<Integer> values) {
            addCriterion("orderid in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotIn(List<Integer> values) {
            addCriterion("orderid not in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidBetween(Integer value1, Integer value2) {
            addCriterion("orderid between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotBetween(Integer value1, Integer value2) {
            addCriterion("orderid not between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrdernoIsNull() {
            addCriterion("orderno is null");
            return (Criteria) this;
        }

        public Criteria andOrdernoIsNotNull() {
            addCriterion("orderno is not null");
            return (Criteria) this;
        }

        public Criteria andOrdernoEqualTo(String value) {
            addCriterion("orderno =", value, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoNotEqualTo(String value) {
            addCriterion("orderno <>", value, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoGreaterThan(String value) {
            addCriterion("orderno >", value, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoGreaterThanOrEqualTo(String value) {
            addCriterion("orderno >=", value, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoLessThan(String value) {
            addCriterion("orderno <", value, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoLessThanOrEqualTo(String value) {
            addCriterion("orderno <=", value, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoLike(String value) {
            addCriterion("orderno like", value, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoNotLike(String value) {
            addCriterion("orderno not like", value, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoIn(List<String> values) {
            addCriterion("orderno in", values, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoNotIn(List<String> values) {
            addCriterion("orderno not in", values, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoBetween(String value1, String value2) {
            addCriterion("orderno between", value1, value2, "orderno");
            return (Criteria) this;
        }

        public Criteria andOrdernoNotBetween(String value1, String value2) {
            addCriterion("orderno not between", value1, value2, "orderno");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andGoodcountIsNull() {
            addCriterion("goodCount is null");
            return (Criteria) this;
        }

        public Criteria andGoodcountIsNotNull() {
            addCriterion("goodCount is not null");
            return (Criteria) this;
        }

        public Criteria andGoodcountEqualTo(Integer value) {
            addCriterion("goodCount =", value, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountNotEqualTo(Integer value) {
            addCriterion("goodCount <>", value, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountGreaterThan(Integer value) {
            addCriterion("goodCount >", value, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodCount >=", value, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountLessThan(Integer value) {
            addCriterion("goodCount <", value, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountLessThanOrEqualTo(Integer value) {
            addCriterion("goodCount <=", value, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountIn(List<Integer> values) {
            addCriterion("goodCount in", values, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountNotIn(List<Integer> values) {
            addCriterion("goodCount not in", values, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountBetween(Integer value1, Integer value2) {
            addCriterion("goodCount between", value1, value2, "goodcount");
            return (Criteria) this;
        }

        public Criteria andGoodcountNotBetween(Integer value1, Integer value2) {
            addCriterion("goodCount not between", value1, value2, "goodcount");
            return (Criteria) this;
        }

        public Criteria andTotalpriceIsNull() {
            addCriterion("totalPrice is null");
            return (Criteria) this;
        }

        public Criteria andTotalpriceIsNotNull() {
            addCriterion("totalPrice is not null");
            return (Criteria) this;
        }

        public Criteria andTotalpriceEqualTo(BigDecimal value) {
            addCriterion("totalPrice =", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceNotEqualTo(BigDecimal value) {
            addCriterion("totalPrice <>", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceGreaterThan(BigDecimal value) {
            addCriterion("totalPrice >", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("totalPrice >=", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceLessThan(BigDecimal value) {
            addCriterion("totalPrice <", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("totalPrice <=", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceIn(List<BigDecimal> values) {
            addCriterion("totalPrice in", values, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceNotIn(List<BigDecimal> values) {
            addCriterion("totalPrice not in", values, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("totalPrice between", value1, value2, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("totalPrice not between", value1, value2, "totalprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceIsNull() {
            addCriterion("realprice is null");
            return (Criteria) this;
        }

        public Criteria andRealpriceIsNotNull() {
            addCriterion("realprice is not null");
            return (Criteria) this;
        }

        public Criteria andRealpriceEqualTo(BigDecimal value) {
            addCriterion("realprice =", value, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceNotEqualTo(BigDecimal value) {
            addCriterion("realprice <>", value, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceGreaterThan(BigDecimal value) {
            addCriterion("realprice >", value, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("realprice >=", value, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceLessThan(BigDecimal value) {
            addCriterion("realprice <", value, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("realprice <=", value, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceIn(List<BigDecimal> values) {
            addCriterion("realprice in", values, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceNotIn(List<BigDecimal> values) {
            addCriterion("realprice not in", values, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("realprice between", value1, value2, "realprice");
            return (Criteria) this;
        }

        public Criteria andRealpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("realprice not between", value1, value2, "realprice");
            return (Criteria) this;
        }

        public Criteria andIspayIsNull() {
            addCriterion("ispay is null");
            return (Criteria) this;
        }

        public Criteria andIspayIsNotNull() {
            addCriterion("ispay is not null");
            return (Criteria) this;
        }

        public Criteria andIspayEqualTo(Byte value) {
            addCriterion("ispay =", value, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayNotEqualTo(Byte value) {
            addCriterion("ispay <>", value, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayGreaterThan(Byte value) {
            addCriterion("ispay >", value, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayGreaterThanOrEqualTo(Byte value) {
            addCriterion("ispay >=", value, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayLessThan(Byte value) {
            addCriterion("ispay <", value, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayLessThanOrEqualTo(Byte value) {
            addCriterion("ispay <=", value, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayIn(List<Byte> values) {
            addCriterion("ispay in", values, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayNotIn(List<Byte> values) {
            addCriterion("ispay not in", values, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayBetween(Byte value1, Byte value2) {
            addCriterion("ispay between", value1, value2, "ispay");
            return (Criteria) this;
        }

        public Criteria andIspayNotBetween(Byte value1, Byte value2) {
            addCriterion("ispay not between", value1, value2, "ispay");
            return (Criteria) this;
        }

        public Criteria andIsrefundIsNull() {
            addCriterion("isrefund is null");
            return (Criteria) this;
        }

        public Criteria andIsrefundIsNotNull() {
            addCriterion("isrefund is not null");
            return (Criteria) this;
        }

        public Criteria andIsrefundEqualTo(Byte value) {
            addCriterion("isrefund =", value, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundNotEqualTo(Byte value) {
            addCriterion("isrefund <>", value, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundGreaterThan(Byte value) {
            addCriterion("isrefund >", value, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundGreaterThanOrEqualTo(Byte value) {
            addCriterion("isrefund >=", value, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundLessThan(Byte value) {
            addCriterion("isrefund <", value, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundLessThanOrEqualTo(Byte value) {
            addCriterion("isrefund <=", value, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundIn(List<Byte> values) {
            addCriterion("isrefund in", values, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundNotIn(List<Byte> values) {
            addCriterion("isrefund not in", values, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundBetween(Byte value1, Byte value2) {
            addCriterion("isrefund between", value1, value2, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIsrefundNotBetween(Byte value1, Byte value2) {
            addCriterion("isrefund not between", value1, value2, "isrefund");
            return (Criteria) this;
        }

        public Criteria andIssendIsNull() {
            addCriterion("issend is null");
            return (Criteria) this;
        }

        public Criteria andIssendIsNotNull() {
            addCriterion("issend is not null");
            return (Criteria) this;
        }

        public Criteria andIssendEqualTo(Byte value) {
            addCriterion("issend =", value, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendNotEqualTo(Byte value) {
            addCriterion("issend <>", value, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendGreaterThan(Byte value) {
            addCriterion("issend >", value, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendGreaterThanOrEqualTo(Byte value) {
            addCriterion("issend >=", value, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendLessThan(Byte value) {
            addCriterion("issend <", value, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendLessThanOrEqualTo(Byte value) {
            addCriterion("issend <=", value, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendIn(List<Byte> values) {
            addCriterion("issend in", values, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendNotIn(List<Byte> values) {
            addCriterion("issend not in", values, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendBetween(Byte value1, Byte value2) {
            addCriterion("issend between", value1, value2, "issend");
            return (Criteria) this;
        }

        public Criteria andIssendNotBetween(Byte value1, Byte value2) {
            addCriterion("issend not between", value1, value2, "issend");
            return (Criteria) this;
        }

        public Criteria andRefundremarkIsNull() {
            addCriterion("refundremark is null");
            return (Criteria) this;
        }

        public Criteria andRefundremarkIsNotNull() {
            addCriterion("refundremark is not null");
            return (Criteria) this;
        }

        public Criteria andRefundremarkEqualTo(String value) {
            addCriterion("refundremark =", value, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkNotEqualTo(String value) {
            addCriterion("refundremark <>", value, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkGreaterThan(String value) {
            addCriterion("refundremark >", value, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkGreaterThanOrEqualTo(String value) {
            addCriterion("refundremark >=", value, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkLessThan(String value) {
            addCriterion("refundremark <", value, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkLessThanOrEqualTo(String value) {
            addCriterion("refundremark <=", value, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkLike(String value) {
            addCriterion("refundremark like", value, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkNotLike(String value) {
            addCriterion("refundremark not like", value, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkIn(List<String> values) {
            addCriterion("refundremark in", values, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkNotIn(List<String> values) {
            addCriterion("refundremark not in", values, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkBetween(String value1, String value2) {
            addCriterion("refundremark between", value1, value2, "refundremark");
            return (Criteria) this;
        }

        public Criteria andRefundremarkNotBetween(String value1, String value2) {
            addCriterion("refundremark not between", value1, value2, "refundremark");
            return (Criteria) this;
        }

        public Criteria andPaytimeIsNull() {
            addCriterion("paytime is null");
            return (Criteria) this;
        }

        public Criteria andPaytimeIsNotNull() {
            addCriterion("paytime is not null");
            return (Criteria) this;
        }

        public Criteria andPaytimeEqualTo(Date value) {
            addCriterion("paytime =", value, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeNotEqualTo(Date value) {
            addCriterion("paytime <>", value, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeGreaterThan(Date value) {
            addCriterion("paytime >", value, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeGreaterThanOrEqualTo(Date value) {
            addCriterion("paytime >=", value, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeLessThan(Date value) {
            addCriterion("paytime <", value, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeLessThanOrEqualTo(Date value) {
            addCriterion("paytime <=", value, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeIn(List<Date> values) {
            addCriterion("paytime in", values, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeNotIn(List<Date> values) {
            addCriterion("paytime not in", values, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeBetween(Date value1, Date value2) {
            addCriterion("paytime between", value1, value2, "paytime");
            return (Criteria) this;
        }

        public Criteria andPaytimeNotBetween(Date value1, Date value2) {
            addCriterion("paytime not between", value1, value2, "paytime");
            return (Criteria) this;
        }

        public Criteria andIstakeoverIsNull() {
            addCriterion("istakeover is null");
            return (Criteria) this;
        }

        public Criteria andIstakeoverIsNotNull() {
            addCriterion("istakeover is not null");
            return (Criteria) this;
        }

        public Criteria andIstakeoverEqualTo(Byte value) {
            addCriterion("istakeover =", value, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverNotEqualTo(Byte value) {
            addCriterion("istakeover <>", value, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverGreaterThan(Byte value) {
            addCriterion("istakeover >", value, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverGreaterThanOrEqualTo(Byte value) {
            addCriterion("istakeover >=", value, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverLessThan(Byte value) {
            addCriterion("istakeover <", value, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverLessThanOrEqualTo(Byte value) {
            addCriterion("istakeover <=", value, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverIn(List<Byte> values) {
            addCriterion("istakeover in", values, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverNotIn(List<Byte> values) {
            addCriterion("istakeover not in", values, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverBetween(Byte value1, Byte value2) {
            addCriterion("istakeover between", value1, value2, "istakeover");
            return (Criteria) this;
        }

        public Criteria andIstakeoverNotBetween(Byte value1, Byte value2) {
            addCriterion("istakeover not between", value1, value2, "istakeover");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeIsNull() {
            addCriterion("deliervytime is null");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeIsNotNull() {
            addCriterion("deliervytime is not null");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeEqualTo(Date value) {
            addCriterion("deliervytime =", value, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeNotEqualTo(Date value) {
            addCriterion("deliervytime <>", value, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeGreaterThan(Date value) {
            addCriterion("deliervytime >", value, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeGreaterThanOrEqualTo(Date value) {
            addCriterion("deliervytime >=", value, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeLessThan(Date value) {
            addCriterion("deliervytime <", value, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeLessThanOrEqualTo(Date value) {
            addCriterion("deliervytime <=", value, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeIn(List<Date> values) {
            addCriterion("deliervytime in", values, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeNotIn(List<Date> values) {
            addCriterion("deliervytime not in", values, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeBetween(Date value1, Date value2) {
            addCriterion("deliervytime between", value1, value2, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andDeliervytimeNotBetween(Date value1, Date value2) {
            addCriterion("deliervytime not between", value1, value2, "deliervytime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeIsNull() {
            addCriterion("receivetime is null");
            return (Criteria) this;
        }

        public Criteria andReceivetimeIsNotNull() {
            addCriterion("receivetime is not null");
            return (Criteria) this;
        }

        public Criteria andReceivetimeEqualTo(Date value) {
            addCriterion("receivetime =", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeNotEqualTo(Date value) {
            addCriterion("receivetime <>", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeGreaterThan(Date value) {
            addCriterion("receivetime >", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("receivetime >=", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeLessThan(Date value) {
            addCriterion("receivetime <", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeLessThanOrEqualTo(Date value) {
            addCriterion("receivetime <=", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeIn(List<Date> values) {
            addCriterion("receivetime in", values, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeNotIn(List<Date> values) {
            addCriterion("receivetime not in", values, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeBetween(Date value1, Date value2) {
            addCriterion("receivetime between", value1, value2, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeNotBetween(Date value1, Date value2) {
            addCriterion("receivetime not between", value1, value2, "receivetime");
            return (Criteria) this;
        }

        public Criteria andOrderstatusIsNull() {
            addCriterion("orderstatus is null");
            return (Criteria) this;
        }

        public Criteria andOrderstatusIsNotNull() {
            addCriterion("orderstatus is not null");
            return (Criteria) this;
        }

        public Criteria andOrderstatusEqualTo(Byte value) {
            addCriterion("orderstatus =", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusNotEqualTo(Byte value) {
            addCriterion("orderstatus <>", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusGreaterThan(Byte value) {
            addCriterion("orderstatus >", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("orderstatus >=", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusLessThan(Byte value) {
            addCriterion("orderstatus <", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusLessThanOrEqualTo(Byte value) {
            addCriterion("orderstatus <=", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusIn(List<Byte> values) {
            addCriterion("orderstatus in", values, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusNotIn(List<Byte> values) {
            addCriterion("orderstatus not in", values, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusBetween(Byte value1, Byte value2) {
            addCriterion("orderstatus between", value1, value2, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusNotBetween(Byte value1, Byte value2) {
            addCriterion("orderstatus not between", value1, value2, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andConsnameIsNull() {
            addCriterion("consName is null");
            return (Criteria) this;
        }

        public Criteria andConsnameIsNotNull() {
            addCriterion("consName is not null");
            return (Criteria) this;
        }

        public Criteria andConsnameEqualTo(String value) {
            addCriterion("consName =", value, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameNotEqualTo(String value) {
            addCriterion("consName <>", value, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameGreaterThan(String value) {
            addCriterion("consName >", value, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameGreaterThanOrEqualTo(String value) {
            addCriterion("consName >=", value, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameLessThan(String value) {
            addCriterion("consName <", value, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameLessThanOrEqualTo(String value) {
            addCriterion("consName <=", value, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameLike(String value) {
            addCriterion("consName like", value, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameNotLike(String value) {
            addCriterion("consName not like", value, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameIn(List<String> values) {
            addCriterion("consName in", values, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameNotIn(List<String> values) {
            addCriterion("consName not in", values, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameBetween(String value1, String value2) {
            addCriterion("consName between", value1, value2, "consname");
            return (Criteria) this;
        }

        public Criteria andConsnameNotBetween(String value1, String value2) {
            addCriterion("consName not between", value1, value2, "consname");
            return (Criteria) this;
        }

        public Criteria andConsphoneIsNull() {
            addCriterion("consPhone is null");
            return (Criteria) this;
        }

        public Criteria andConsphoneIsNotNull() {
            addCriterion("consPhone is not null");
            return (Criteria) this;
        }

        public Criteria andConsphoneEqualTo(String value) {
            addCriterion("consPhone =", value, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneNotEqualTo(String value) {
            addCriterion("consPhone <>", value, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneGreaterThan(String value) {
            addCriterion("consPhone >", value, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneGreaterThanOrEqualTo(String value) {
            addCriterion("consPhone >=", value, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneLessThan(String value) {
            addCriterion("consPhone <", value, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneLessThanOrEqualTo(String value) {
            addCriterion("consPhone <=", value, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneLike(String value) {
            addCriterion("consPhone like", value, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneNotLike(String value) {
            addCriterion("consPhone not like", value, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneIn(List<String> values) {
            addCriterion("consPhone in", values, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneNotIn(List<String> values) {
            addCriterion("consPhone not in", values, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneBetween(String value1, String value2) {
            addCriterion("consPhone between", value1, value2, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsphoneNotBetween(String value1, String value2) {
            addCriterion("consPhone not between", value1, value2, "consphone");
            return (Criteria) this;
        }

        public Criteria andConsaddressIsNull() {
            addCriterion("consAddress is null");
            return (Criteria) this;
        }

        public Criteria andConsaddressIsNotNull() {
            addCriterion("consAddress is not null");
            return (Criteria) this;
        }

        public Criteria andConsaddressEqualTo(String value) {
            addCriterion("consAddress =", value, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressNotEqualTo(String value) {
            addCriterion("consAddress <>", value, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressGreaterThan(String value) {
            addCriterion("consAddress >", value, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressGreaterThanOrEqualTo(String value) {
            addCriterion("consAddress >=", value, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressLessThan(String value) {
            addCriterion("consAddress <", value, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressLessThanOrEqualTo(String value) {
            addCriterion("consAddress <=", value, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressLike(String value) {
            addCriterion("consAddress like", value, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressNotLike(String value) {
            addCriterion("consAddress not like", value, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressIn(List<String> values) {
            addCriterion("consAddress in", values, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressNotIn(List<String> values) {
            addCriterion("consAddress not in", values, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressBetween(String value1, String value2) {
            addCriterion("consAddress between", value1, value2, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConsaddressNotBetween(String value1, String value2) {
            addCriterion("consAddress not between", value1, value2, "consaddress");
            return (Criteria) this;
        }

        public Criteria andConscodeIsNull() {
            addCriterion("consCode is null");
            return (Criteria) this;
        }

        public Criteria andConscodeIsNotNull() {
            addCriterion("consCode is not null");
            return (Criteria) this;
        }

        public Criteria andConscodeEqualTo(Integer value) {
            addCriterion("consCode =", value, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeNotEqualTo(Integer value) {
            addCriterion("consCode <>", value, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeGreaterThan(Integer value) {
            addCriterion("consCode >", value, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeGreaterThanOrEqualTo(Integer value) {
            addCriterion("consCode >=", value, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeLessThan(Integer value) {
            addCriterion("consCode <", value, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeLessThanOrEqualTo(Integer value) {
            addCriterion("consCode <=", value, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeIn(List<Integer> values) {
            addCriterion("consCode in", values, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeNotIn(List<Integer> values) {
            addCriterion("consCode not in", values, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeBetween(Integer value1, Integer value2) {
            addCriterion("consCode between", value1, value2, "conscode");
            return (Criteria) this;
        }

        public Criteria andConscodeNotBetween(Integer value1, Integer value2) {
            addCriterion("consCode not between", value1, value2, "conscode");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }
        
        public Criteria andCreatetimeLike(String value) {
            addCriterion("createtime like ", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andLasttimeIsNull() {
            addCriterion("lasttime is null");
            return (Criteria) this;
        }

        public Criteria andLasttimeIsNotNull() {
            addCriterion("lasttime is not null");
            return (Criteria) this;
        }

        public Criteria andLasttimeEqualTo(Date value) {
            addCriterion("lasttime =", value, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeNotEqualTo(Date value) {
            addCriterion("lasttime <>", value, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeGreaterThan(Date value) {
            addCriterion("lasttime >", value, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("lasttime >=", value, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeLessThan(Date value) {
            addCriterion("lasttime <", value, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeLessThanOrEqualTo(Date value) {
            addCriterion("lasttime <=", value, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeIn(List<Date> values) {
            addCriterion("lasttime in", values, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeNotIn(List<Date> values) {
            addCriterion("lasttime not in", values, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeBetween(Date value1, Date value2) {
            addCriterion("lasttime between", value1, value2, "lasttime");
            return (Criteria) this;
        }

        public Criteria andLasttimeNotBetween(Date value1, Date value2) {
            addCriterion("lasttime not between", value1, value2, "lasttime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}